package us.gaaoc.framework.webapp.controllers.model;

import java.io.Serializable;

public class TableView implements Serializable
{

	private static final long serialVersionUID = 1L;
	private int statusCode1;
	private int statusCode2;
	private int statusCode3;
	private int statusCode4;
	private int statusCode5;
	private int count;
	boolean casedetail = false;
	boolean clear = false;
	boolean tagged = false;
	boolean separator = false;
	
	public static TableView separator() {
		TableView tv = new TableView();
		tv.separator = true;
		tv.id = "separator";
		return tv;
	}
	
	public static TableView tagged(String id,String description)
	{
		TableView tv = new TableView();
		tv.setId(id);
		tv.setDescription(description);		
		tv.setClear(false);
		tv.setTagged(true);
		return tv;
	}
	
	public boolean isTagged() {
		return tagged;
	}
	
	public void setTagged(boolean tagged) {
		this.tagged = tagged;
	}
	
	private TableView() {
		
	}
	
	public void setSeparator(boolean separator) {
		this.separator = separator;
	}
	
	public boolean isSeparator() {
		return separator;
	}
	
	public TableView(String id,String description,boolean clear, int statusCode2,int statusCode1,int statusCode3,int statusCode4,int statusCode5, boolean casedetail){
		this.id = id;
		this.description = description;
		this.statusCode1 = statusCode1;
		this.statusCode2 = statusCode2;
		this.statusCode3 = statusCode3;
		this.statusCode4 = statusCode4;
		this.statusCode5 = statusCode5;
		this.casedetail = casedetail;
		this.clear = clear;

	}
	
	private String id;
	private String description;
	public void setId(String id) {
		this.id = id;
	}
	public String getId() {
		return id;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getDescription() {
		return description;
	}
	public void setStatusCode1(int statusCode1) {
		this.statusCode1 = statusCode1;
	}
	public int getStatusCode1() {
		return statusCode1;
	}
	public void setStatusCode2(int statusCode2) {
		this.statusCode2 = statusCode2;
	}
	public int getStatusCode2() {
		return statusCode2;
	}
	public void setStatusCode3(int statusCode3) {
		this.statusCode3 = statusCode3;
	}
	public int getStatusCode3() {
		return statusCode3;
	}
	public void setStatusCode4(int statusCode4) {
		this.statusCode4 = statusCode4;
	}
	public int getStatusCode4() {
		return statusCode4;
	}
	public void setStatusCode5(int statusCode5) {
		this.statusCode5 = statusCode5;
	}
	public int getStatusCode5() {
		return statusCode5;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public int getCount() {
		return count;
	}
	
	
	public void setCaseDetail(boolean casedetail) {
		this.casedetail = casedetail;
	}
	public boolean getCaseDetail() {
		return casedetail;
	}
	
	
	
	public void setClear(boolean clear) {
		this.clear = clear;
	}
	public boolean getClear() {
		return clear;
	}
}

